package com.lizemin.mybatis.sqlHandler;

import com.lizemin.mybatis.entity.MapperSql;
import com.lizemin.mybatis.entity.ParamValue;

import javax.sql.DataSource;
import java.util.HashMap;

/**
 * @author lzm
 * @date 2025/5/20 22:10
 * @description
 */
public abstract class SqlHandler {

    protected final DataSource dataSource;

    public SqlHandler(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public abstract Object handle(MapperSql mapperSql, HashMap<String, ParamValue> paramValueMap, Class<?> returnType);

}
